<template>
	<view class="hun" style="background-color: #EEEEEE;position: relative;height: 100%;">
		<view class="inv-h-w">
			
			<view :class="['inv-h',Inv==0?'inv-h-se':'']" @click="yj_searchForm(Inv=0)">基本信息</view>
			<view :class="['inv-h',Inv==1?'inv-h-se':'']" @click="yj_searchForm(Inv=1)">闭合</view>
			<view v-if="statusNum>=2" :class="['inv-h',Inv==2?'inv-h-se':'']" @click="yj_searchForm(Inv=2)">
				一级审核</view>
			<view v-if="statusNum>=3" :class="['inv-h',Inv==3?'inv-h-se':'']" @click="yj_searchForm(Inv=3)">二级审核</view>

		</view>

		<view class="" style="position: absolute;width: 100%;margin-top: 100upx">
			<view class="formPage" v-show="Inv==0">
				<form>
					<fromItem title="样品名称" :data="totalData.fSamplename" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="样品编号" :data="totalData.fSamplenumber" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="报告编号" :data="totalData.fReportnumber" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="报告日期" :data="totalData.fCommissiondates" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="工程部位/用途" :data="totalData.fIntendeduse" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
			
				
				</form>
			</view>
			<view class="formPage" v-show="Inv==1">
				<form>
					<view style="width: 100%;">
						<fromItem title="处理方式" :data="closeFormObj.fProcessing" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
						<fromItem title="处理日期" :data="closeFormObj.fProcessdates" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
						<fromItem title="处理人" :data="closeFormObj.fProcessusername" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
						<fromItem title="不合格参数及结果" :data="closeFormObj.fNonresult" flex="right" nameColor="#989898"
							projectName="#343434" type="textarea">
						</fromItem>
			
						<view class="cu-bar bg-white" style="margin-top: 15upx;">

							<view class="action">
								<image src="@/static/unscope.png" mode=""
									style="width: 30upx;height: 30upx;vertical-align: middle;">
									附件资料
							</view>
							<view class="action">
								{{fileList.length}}/{{count}}
							</view>
						</view>
						<view class="cu-form-group">
							<view class="grid col-4 grid-square flex-sub">
								<view class="bg-img" v-for="(item,index) in fileList" :key="index" :data-url="item.url">
									<image @tap="pdfPage(item.name, item.url)" v-if="item.fFileType=='.pdf'"
										src="@/static/organization.png" mode="aspectFill"></image>
									<view v-else style="height: 100%;" :data-url="item.url">
										<image :src="item.url" @tap="ViewImage($event, item.url)"></image>
									</view>
									
								</view>
						

							</view>
						</view>

					</view>

				
				</form>
			</view>
			<view class="formPage" v-show="Inv==2">
				<form>
					
					<fromItem title="审核结果" :data="FirstLevel.fCheckresult1" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="审核人" :data="FirstLevel.fCheckusername1" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="处理日期" :data="FirstLevel.fCheckdate1s" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="审核意见" :data="FirstLevel.fCheckopinion1" flex="right" nameColor="#989898"
						projectName="#343434" type="textarea">
					</fromItem>
					
					<view style="width: 100%;">
						
						<view class="cu-bar bg-white" style="margin-top: 15upx;">

							<view class="action">
								<image src="@/static/unscope.png" mode=""
									style="width: 30upx;height: 30upx;vertical-align: middle;">
									附件资料
							</view>
							<view class="action">
								{{FirstList.length}}/{{count}}
							</view>
						</view>
						<view class="cu-form-group">
							<view class="grid col-4 grid-square flex-sub">
								<view class="bg-img" v-for="(item,index) in FirstList" :key="index"
									:data-url="item.url">
									<image @tap="pdfPage(item.name, item.url)" v-if="item.fFileType=='.pdf'"
										src="@/static/organization.png" mode="aspectFill"></image>
									<view v-else style="height: 100%;" :data-url="item.url">
										<image :src="item.url" @tap="ViewImage($event, item.url)"></image>
									</view>
									
								</view>
							</view>
						</view>
					</view>
				</form>
			</view>
			<view class="formPage" v-show="Inv==3">
				<form>
					<view style="width: 100%;">
						<fromItem title="审核结果" :data="secondLevel.fCheckresult2" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
						<fromItem title="审核人" :data="secondLevel.fCheckusername2" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
						<fromItem title="处理日期" :data="secondLevel.fCheckdate2s" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
						<fromItem title="审核意见" :data="secondLevel.fCheckopinion2" flex="right" nameColor="#989898"
							projectName="#343434" type="textarea">
						</fromItem>
						<view class="cu-bar bg-white" style="margin-top: 15upx;">

							<view class="action">
								<image src="@/static/unscope.png" mode=""
									style="width: 30upx;height: 30upx;vertical-align: middle;">
									附件资料
							</view>
							<view class="action">
								{{secondList.length}}/{{count}}
							</view>
						</view>
						<view class="cu-form-group">
							<view class="grid col-4 grid-square flex-sub">
								<view class="bg-img" v-for="(item,index) in secondList" :key="index"
									:data-url="item.url">
									<image @tap="pdfPage(item.name, item.url)" v-if="item.fFileType=='.pdf'"
										src="@/static/organization.png" mode="aspectFill"></image>
									<view v-else style="height: 100%;" :data-url="item.url">
										<image :src="item.url" @tap="ViewImage($event, item.url)"></image>
									</view>
									<view v-if="!erji" class="cu-tag bg-red" @tap.stop="DelFile($event,item.fId,index)">
										<text class='cuIcon-close'></text>
									</view>
								</view>
								<view v-if="(secondList.length<count)&&!erji">
									<lsj-upload ref="lsjUpload" childId="upload" :width="heights" :height="heights"
										:option="option" :size="size" :debug="debug" :instantly="instantly"
										@progress="onprogress" @change="onChange" :count='count'>
										<view class="solids" style="width: 156rpx;height: 156rpx;">
											<text class='cuIcon-add'></text>
										</view>
									</lsj-upload>

								</view>

							</view>
						</view>


					</view>

				</form>
			</view>
			<loading :shadeShow="shadeShow" :shadeClick="false" :backgroundColor="backgroundColor" :width="width"
				:height="height" ref="loading" :custom="false" :type="1" @callback="callback()">
			</loading>
			<!-- 		<tki-tree ref="company" nodeKey="fCompanyid" rangeKey="fShortname" :selectParent="selectParent"
				:multiple="multiple" :range="companyTree" :foldAll="flod" @confirm="treeConfirm" @cancel="treeCancel">
			</tki-tree> -->

		</view>
	</view>
</template>
<script src="./index.js">
</script>
<style scoped lang="less">
	@import './index.less';
</style>
